package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Table(name = "cn_dmc_rfid_event_oldman")
public class DmcRfidEventOldman extends BaseEntity {

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 门禁读卡器位置
     */
    private String location;

    /**
     * 外出消息
     */
    private String message;

    /**
     * 处理状态 0-未处理 1-已处理 2-超时
     */
    @Column(name = "deal_stat")
    private Integer dealStat;

    /**
     * 处理结果 0-不允许 1-允许
     */
    @Column(name = "deal_result")
    private Integer dealResult;

    /**
     * 护工处理的时间
     */
    @Column(name = "deal_time")
    private String dealTime;

    /**
     * 配对状态 0-未经过门禁二 1-已经过门禁二
     */
    @Column(name = "match_stat")
    private Integer matchStat;

    /**
     * 门禁序号
     */
    @Column(name = "number")
    private Integer number;

    /**
     * 上一个外出记录
     */
    private Long pid;

    /**
     * 处理人Id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 处理人姓名
     */
    @Column(name = "user_name")
    private String userName;

    /**
     * 机构Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 班组Id
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;
}